<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>取得结果集中每个输出的长度</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.mysql-fetch-lengths" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">mysql_fetch_lengths</h1>
    <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">mysql_fetch_lengths</span> &mdash; <span class="dc-title">
     取得结果集中每个输出的长度
    </span></p>

   </div>
   <div class="refsect1 unknown-seealsp" id="refsect1-function.mysql-fetch-lengths-unknown-seealsp">
    <h3 class="title">说明</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>mysql_fetch_lengths</strong></span>
       ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$result</code></span>
      ) : <span class="type">array</span></div>

    <p class="para rdfs-comment">
     以数组返回上一次用
     <span class="function"><a href="mysql_fetch_row.html" class="function">mysql_fetch_row()</a></span>
     取得的行中每个字段的长度，如果出错返回 <strong><code>FALSE</code></strong>。
    </p>
    <p class="para">
     <span class="function"><strong>mysql_fetch_lengths()</strong></span> 将上一次
     <span class="function"><a href="mysql_fetch_row.html" class="function">mysql_fetch_row()</a></span>，<span class="function"><a href="mysql_fetch_array.html" class="function">mysql_fetch_array()</a></span>
     和 <span class="function"><a href="mysql_fetch_object.html" class="function">mysql_fetch_object()</a></span>
     所返回的每个列的长度储存到一个数组中，偏移量从 0 开始。
    </p>
    <p class="para">
     参见 <span class="function"><a href="mysql_fetch_row.html" class="function">mysql_fetch_row()</a></span>。
    </p>
   </div>

  </div></div></div></body></html>